package com.ruyuan.eshop.construction.converter;

import com.ruyuan.eshop.construction.domain.dto.DraftImgDTO;
import com.ruyuan.eshop.construction.domain.dto.DraftMainDTO;
import com.ruyuan.eshop.construction.domain.entity.DraftImgDO;
import com.ruyuan.eshop.construction.domain.entity.DraftMainDO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 品类相关对象克隆
 * @author zhonghuashishan
 * @version 1.0
 */
@Mapper(componentModel = "spring")
public interface DraftConverter {

    /**
     * 对象克隆
     * @param draftMainDO
     * @return
     */
    DraftMainDTO convertDTO(DraftMainDO draftMainDO);

    List<DraftImgDTO> convertImgDTO(List<DraftImgDO> list);
}
